<template>
  <div>
    <el-container>
      <el-header style="height:50px; padding: 0px">
        <v-header></v-header>
      </el-header>
      <el-container>
        <el-aside style="width:200px">
          <v-navmenu></v-navmenu>
        </el-aside>
        <el-main style="padding: 5px">
          <keep-alive>
            <router-view ></router-view>
          </keep-alive>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import header from './app-header/appHeader'
import navmenu from './nav-menu/navMenu'

export default {
  components: {
    'v-header': header,
    'v-navmenu': navmenu
  },
  data () {
    return {
      router: true
    }
  },
  methods: {
    handleOpen (key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose (key, keyPath) {
      console.log(key, keyPath)
    }
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
</style>
